package com.yc.house.model;


import com.yc.base.model.IdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@SuppressWarnings("serial")
@Entity
@Table(name = "t_s_yidong")
@org.hibernate.annotations.Table(appliesTo = "t_s_yidong", comment = "移动用户信息表")
public class TSYidong extends IdEntity implements Serializable {

	private String username;// 用户名，账号
	private String password;//密码

	private Date updateTime;
	private int status;


	@Column(columnDefinition = "varchar(32) not NULL UNIQUE COMMENT '用户名'")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(columnDefinition = "varchar(100) DEFAULT NULL COMMENT '密码'")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "updateTime")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(columnDefinition = "int(4) DEFAULT 1 COMMENT '状态'")
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public TSYidong() {
	}

}
